package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;

@Getter
public class StockException extends RuntimeException{

    /**
     * 通用响应接口
     */
    private final Code code;

    public StockException(Code code){
        this.code = code;
    }

}
